package com.wdb.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wdb.modules.system.domain.Role;
import com.wdb.modules.system.domain.vo.RoleQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: wendaobai@qq.com
 * @date: 2024/1/18 0018 16:04
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
  List<Role> findByUserId(@Param("userId") Long userId);

  List<Role> findAll(@Param("criteria") RoleQueryCriteria criteria);

  Integer countAll(@Param("criteria") RoleQueryCriteria criteria);
}
